import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/7/2
 * Time:21:27
 **/
public class Main2 {
    /**
     * 判断B是否存在于A中
     * @param args
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            boolean contain = true;
            StringBuffer A = new StringBuffer(sc.next());
            char[] B = sc.next().toCharArray();
            for (char c : B) {
                int index = A.indexOf(String.valueOf(c));
                //String.valueOf(c)表示将c换为String类型
                if (index != -1)
                //找到则在A中删除
                    A.deleteCharAt(index);
                    //移除在此序列中的指定位置(index表示要删除字符的索引)的char值
                else {
                    System.out.println("No");
                    contain = false;
                    break;
                }
            }
            if (contain)
                System.out.println("Yes");
        }
    }
}